package com.dz.goods.feign.file;

import com.dz.common.base.ResponseBase;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;



@FeignClient("buduncle-file")
public interface FileFeignService {
    @PostMapping(value = "/file/upload")
    @ResponseBody
    ResponseBase upload(@RequestParam(name = "file") MultipartFile file) throws Exception;
}
